package jobs.controller;

import javax.ejb.EJB;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;
import jobs.pattern.design.ControllerComposite;
import jobs.pattern.design.DAOComposite;
import jobs.model.Level;
import jobs.model.dao.LevelDAO;

/**
 *
 * @author administrador
 */
@ManagedBean(name = "levels")
@SessionScoped
public class LevelController extends ControllerComposite<Level> {

    @EJB
    private LevelDAO dao;

    public LevelController() {
        super(Level.class);
    }

    @Override
    public DAOComposite<Level> getDAO() {
        return dao;
    }
}
